<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		
		<meta charset="utf-8" />
		<title></title>
		
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="css/bootstrap.min.css" rel="stylesheet" />
		<link href="css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/font-awesome.min.css" />
		<!--[if IE 7]><link rel="stylesheet" href="css/font-awesome-ie7.min.css" /><![endif]-->
		<!--[if lt IE 9]><link rel="stylesheet" href="css/ace-ie.min.css" /><![endif]-->
		<!-- 下拉框 -->
		<link rel="stylesheet" href="css/chosen.css" />
		
		<link rel="stylesheet" href="css/ace.min.css" />
		<link rel="stylesheet" href="css/ace-responsive.min.css" />
		<link rel="stylesheet" href="css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="css/datepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="js/jquery.tips.js"></script>
		
<script type="text/javascript">
	
	
	
	//保存
	function save(){
			if($("#ORDERID").val()==""){
			$("#ORDERID").tips({
				side:3,
	            msg:'请输入订单编号',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#ORDERID").focus();
			return false;
		}
		if($("#TITLE").val()==""){
			$("#TITLE").tips({
				side:3,
	            msg:'请输入标题',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#TITLE").focus();
			return false;
		}
		if($("#MONEY").val()==""){
			$("#MONEY").tips({
				side:3,
	            msg:'请输入订单金额',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#MONEY").focus();
			return false;
		}
		if($("#USERID").val()==""){
			$("#USERID").tips({
				side:3,
	            msg:'请输入发布人',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#USERID").focus();
			return false;
		}
		if($("#ACCEPTUSER").val()==""){
			$("#ACCEPTUSER").tips({
				side:3,
	            msg:'请输入接单人',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#ACCEPTUSER").focus();
			return false;
		}
		if($("#RELEASETIME").val()==""){
			$("#RELEASETIME").tips({
				side:3,
	            msg:'请输入发布时间',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RELEASETIME").focus();
			return false;
		}
		if($("#ENDTIME").val()==""){
			$("#ENDTIME").tips({
				side:3,
	            msg:'请输入截止时间',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#ENDTIME").focus();
			return false;
		}
		if($("#SUCCESSFUL").val()==""){
			$("#SUCCESSFUL").tips({
				side:3,
	            msg:'请输入中标时间',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#SUCCESSFUL").focus();
			return false;
		}
		if($("#ORDERMOVE").val()==""){
			$("#ORDERMOVE").tips({
				side:3,
	            msg:'请输入视频附件',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#ORDERMOVE").focus();
			return false;
		}
		if($("#ORDERTITLE").val()==""){
			$("#ORDERTITLE").tips({
				side:3,
	            msg:'请输入台本',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#ORDERTITLE").focus();
			return false;
		}
		if($("#POW").val()==""){
			$("#POW").tips({
				side:3,
	            msg:'请输入取消/恢复该订单',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#POW").focus();
			return false;
		}
		if($("#REMARK").val()==""){
			$("#REMARK").tips({
				side:3,
	            msg:'请输入备注',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#REMARK").focus();
			return false;
		}
		$("#Form").submit();
		$("#zhongxin").hide();
		$("#zhongxin2").show();
	}
	
</script>
	</head>
<body>
	<form action="acceptorder/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="ACCEPTORDER_ID" id="ACCEPTORDER_ID" value="${pd.ACCEPTORDER_ID}"/>
		<div id="zhongxin">
		<table>
			<tr>
				<td><input type="text" name="ORDERID" id="ORDERID" value="${pd.ORDERID}" maxlength="32" placeholder="这里输入订单编号" title="订单编号"/></td>
			</tr>
			<tr>
				<td><input type="text" name="TITLE" id="TITLE" value="${pd.TITLE}" maxlength="32" placeholder="这里输入标题" title="标题"/></td>
			</tr>
			<tr>
				<td><input type="text" name="MONEY" id="MONEY" value="${pd.MONEY}" maxlength="32" placeholder="这里输入订单金额" title="订单金额"/></td>
			</tr>
			<tr>
				<td><input type="text" name="USERID" id="USERID" value="${pd.USERID}" maxlength="32" placeholder="这里输入发布人" title="发布人"/></td>
			</tr>
			<tr>
				<td><input type="text" name="ACCEPTUSER" id="ACCEPTUSER" value="${pd.ACCEPTUSER}" maxlength="32" placeholder="这里输入接单人" title="接单人"/></td>
			</tr>
			<tr>
				<td><input class="span10 date-picker" name="RELEASETIME" id="RELEASETIME" value="${pd.RELEASETIME}" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" placeholder="发布时间" title="发布时间"/></td>
			</tr>
			<tr>
				<td><input type="text" name="ENDTIME" id="ENDTIME" value="${pd.ENDTIME}" maxlength="32" placeholder="这里输入截止时间" title="截止时间"/></td>
			</tr>
			<tr>
				<td><input class="span10 date-picker" name="SUCCESSFUL" id="SUCCESSFUL" value="${pd.SUCCESSFUL}" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" placeholder="中标时间" title="中标时间"/></td>
			</tr>
			<tr>
				<td><input type="text" name="ORDERMOVE" id="ORDERMOVE" value="${pd.ORDERMOVE}" maxlength="32" placeholder="这里输入视频附件" title="视频附件"/></td>
			</tr>
			<tr>
				<td><input type="text" name="ORDERTITLE" id="ORDERTITLE" value="${pd.ORDERTITLE}" maxlength="32" placeholder="这里输入台本" title="台本"/></td>
			</tr>
			<tr>
				<td><input type="text" name="POW" id="POW" value="${pd.POW}" maxlength="32" placeholder="这里输入取消/恢复该订单" title="取消/恢复该订单"/></td>
			</tr>
			<tr>
				<td><input type="text" name="REMARK" id="REMARK" value="${pd.REMARK}" maxlength="32" placeholder="这里输入备注" title="备注"/></td>
			</tr>
			<tr>
				<td style="text-align: center;">
					<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
		
	</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/ace-elements.min.js"></script>
		<script src="js/ace.min.js"></script>
		<script type="text/javascript" src="js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(window.parent.hangge());
		$(function() {
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			//日期框
			$('.date-picker').datepicker();
			
		});
		
		</script>
</body>
</html>